package net.nagaseyasuhito.kinsenka.wicket.component;

import org.apache.wicket.markup.html.form.TextArea;
import org.apache.wicket.model.IModel;
import org.apache.wicket.validation.validator.StringValidator;

public class DetailField extends TextArea<CharSequence> {
	public static final int MAXIMUM_LENGTH = 4095;

	private static final long serialVersionUID = 1L;

	public DetailField(String id) {
		this(id, null);
	}

	public DetailField(String id, IModel<CharSequence> model) {
		super(id, model);

		this.add(StringValidator.maximumLength(DetailField.MAXIMUM_LENGTH));
	}
}
